package com.xusheng.cli.req;

import com.xusheng.cli.common.validation.Pc;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author lyh
 * @since 2023-04-27 15:00
 */
@Data
@ToString
public class PayReq {

    /**
     * 充值金额.
     */
    // @Pattern(regexp = "^[1-9]\\d*$", message = "充值金额为6-10000的整数")
    // @Range(min = 6, max = 10000, message = "充值金额为6-10000的整数")
    private String amount;

    /**
     * 充值方式
     */
    @NotNull(message = "缺少支付方式")
    private Long channelId;

    /**
     * 充值方式
     */
    @NotNull(message = "缺少回调地址", groups = Pc.class)
    private String returnUrl;
    /**
     * 银行代码
     */
    private String bankCode;

}
